/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import dataAccess.LabJpaController;
import entities.Lab;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author QUY-THI
 */
public class LabDetail {

    public Lab labDetail(int id) {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("E-AdministrationPU");
        LabJpaController l = new LabJpaController(emf);
        return l.findLab(id);
    }
}
